#ifndef RES_H
#define RES_H

#include "stdint.h"
#define MAIN_LEN  20000
#define HEALTH_ADDR    0x00000
                      
                        
#define TEMP_ADDR      0x00004E24   
#define SLEEP_ADDR     0x00009C48 
#define SPORTS_ADDR    0x0000EA6C    
#define HISTORY_ADDR   0x0001ADC4  
#define SETTING_ADDR   0x0001FBE8   
#define FINGER_ADDR   0x00024A0C             
#define WRIST_ADDR     0x00024A0C      
#define HRTEST1        0x0002A534  
#define HRTEST2        0x0003E068               
#define HRTEST3        0x00051B9C               
#define HRTEST4        0x000656D0    
#define TEMPTEST1        0x000B43A0                            
#define TEMPTEST2        0x000C7ED4                                         
#define TEMPTEST3        0x000DBA08                                         
#define TEMPTEST4        0x000EF53C   
#define LOGO_A        0x00103070  

 
extern uint8_t mainpage0[MAIN_LEN];
extern uint8_t mainpage1[MAIN_LEN];
extern uint8_t mainpage2[MAIN_LEN];
extern uint8_t mainpage3[MAIN_LEN];
extern uint8_t mainpage4[MAIN_LEN];
extern uint8_t mainpage5[MAIN_LEN];

struct reslist{
char mindex;
int  addr;
int  length;
int  pos;
} ;
extern struct reslist g_reslist[20];
//extern uint8_t inner_02[pic_len_02];
//extern uint8_t outter_02[pic_len_0202];
//extern uint8_t s_inner_02[pic_len_0202];
//extern uint8_t s_outter_02[pic_len_0202]; 
//extern uint8_t t_test_02[pic_len_03];

//extern uint8_t bluetooth_03[pic_len_04];
//extern uint8_t ecg_03[pic_len_04];
//extern uint8_t usermode_03[pic_len_04];
//extern uint8_t brightness_03[pic_len_04];
//extern uint8_t sound_03[pic_len_04];
//extern uint8_t date_03[pic_len_04] ;
//extern uint8_t language_03[pic_len_04] ;
//extern uint8_t clear_03[pic_len_04] ;
//extern uint8_t restore_03[pic_len_04] ;
//extern uint8_t about_03[pic_len_04] ;
//extern uint8_t return_back[pic_len_06];
//extern uint8_t return_back_02[pic_len_06];
//extern uint8_t home_op[pic_len_05]     ;
//extern uint8_t del_op[pic_len_05]       ;
//extern uint8_t play_op[pic_len_05]      ;
//extern uint8_t warning_op[pic_len_06] ;
//extern uint8_t font_my[300*1024];
//extern uint8_t battery_status[pic_len_06];
//extern uint8_t battery_status1[pic_len_06];
//extern uint8_t battery_status2[pic_len_06];
//extern uint8_t battery_status3[pic_len_06];
//extern uint8_t battery_status4[pic_len_06];
//extern uint8_t adc_07[pic_len_07]  ;
//extern uint8_t dec_07[pic_len_07]  ;
//extern uint8_t ui_ecg_folder[pic_len_08];
//extern uint8_t ui_spo2_folder[pic_len_08];
//extern uint8_t ui_temp_folder[pic_len_08];

//extern uint8_t ui_img_high[0x00003004];             
//extern uint8_t ui_img_low[0x00001B04];
//extern uint8_t ui_img_replay[0x00003004];              
//extern uint8_t ui_logo_map[307200*3];
//extern uint8_t img_monitor1_map[0x88B4];
//extern uint8_t img_monitor2_map[0x88B4]; 
//extern uint8_t perious_page_png_map[0x00003004];
//extern uint8_t next_page_png_map[0x00003004];
//extern uint8_t file_all_map[0x0000C004];
//extern uint8_t savetime_map[0x00004144] ;

//extern uint8_t indicator1_map[0x000E1004];
//extern uint8_t indicator2_map[0x000E1004];

void load_res_toram(void);
void load_page1(void);
void load_page2(void);
void load_page3(void);
#endif


